<html>
<head><meta charset="utf-8"><title>Apply Flags to Specific Crates · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Apply.20Flags.20to.20Specific.20Crates.html">Apply Flags to Specific Crates</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222705459"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Apply%20Flags%20to%20Specific%20Crates/near/222705459" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Harris <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Apply.20Flags.20to.20Specific.20Crates.html#222705459">(Jan 14 2021 at 11:25)</a>:</h4>
<p>Hi everyone. I want to compile my code with <code>-Zinstrument-coverage</code> but compile external dependencies without this flag to avoid generating too much data. So I have my binary crate and my own library crate that need to be instrumented, but not the <a href="http://crates.io">crates.io</a> dependencies. With <code>cargo rustc</code> I managed to just instrument my binary crate but not my own library. Do you know a way to achieve this?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>